package com.hp.service;

import com.hp.entity.Resources;
import com.hp.result.DataGridResultInfo;
import com.hp.result.SubmitResultInfo;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ResourcesService {

    public SubmitResultInfo saveresource(CommonsMultipartFile file, Resources resources, HttpServletRequest request) throws Exception;


    public DataGridResultInfo getAllAndIsN(int page, int rows, Resources resources)throws Exception;


    public Resources findByid(int id)throws Exception;

    public SubmitResultInfo update(CommonsMultipartFile myfile, Resources resources, HttpServletRequest request)throws Exception;


    public SubmitResultInfo adoptpsr(Resources resources) throws Exception;

    public SubmitResultInfo deleteIsNpsr(int id)throws Exception;

    public List<Resources> getAllResourceAndIsY() throws Exception;

    public List<Resources> findAllByIdAndIsY(String id) throws Exception;

    public Resources lookById(String id) throws Exception;

    public DataGridResultInfo getAllById(String typeid, int page, int rows, Resources resources)throws Exception;
}
